#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
typedef unsigned long long ULL;//使用ULL可以自己取余
const int N = 1e4 + 10;
const int P = 131;//一般给131或13131
ULL a[N];
ULL getnum(string& s)
{
	ULL ret = 0;
	for (int i = 1;i <= s.size();i++)
	{
		ret = ret * P + s[i - 1];
	}
	return ret;
}
int main()
{
	int n = 0;
	cin >> n;
	for (int i = 1;i <= n;i++)
	{
		string s;cin >> s;
		a[i]=getnum(s);
	}
	int ret = 0;
	sort(a + 1, a + 1 + n);
	for (int i = 1;i <= n;i++)
	{
		if (a[i] != a[i + 1]) ret++;
	}
	cout << ret << endl;
	return 0;
}